Do dirty hacks in tests.