Fixing ApplicationValidator test for class with no main method