Set up test environment.