created test for registered validators
added test for Error when trying to create validator that is not registered