Make test-friendly in unofficial environments.