Applying patch to class instead of test methods.