Added tests for Validator
java version updated