added the test for $validator.reset