added tests for Validator base class