Inproved unit tests for base validator class