Prepares for tests.