added tests for $validator.convertRule()
cleanup
added tests for $validator.convertError() and $validator.getRule()
added a test for $validator.validate()