Refactor of error messaging, with a more robust method

Added tests to the verify, validate, extend methods of Validator