When run in parallel, the tests that this commit changes cause the 'db' variable to be modified and impact other tests.