if it's only used in tests, how about directly changing the class in teardown?