unit testing codes for validator
-a