extracting the test existence checker to a separate class