Set up the test environment.