Prevent state leak in test.

This will allow us to run the tests in random order.