Added unit tests for Validator class