Set up testing environment.