since the classNameFilter can be changed only during the config phase we should do this change once and generate either fn that always returns true or fn that runs the test.