feat(validator): Adds throwErr and log methods and tests