Fix after refactoring: instantiate test class only if test is not ignored