Fix test environment.