Clean-up calling `setup_background_tasks` in unit tests.