This test makes sure that all sync database operations are immediately interrupted when the worker needs to terminate.