Setting up test environment.