Add Validators#validate test cases. Closes issue #2.