Fix NPE thrown when loading a properties file. Added unit test for validation with a properties file.