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