Slight performance tweak when running tests.