Rename database variable used on worker tests.
Add helper to run the background synchronization worker for a specified number of seconds.