Sets up testing environment