Test against all types of errors
Simplified Error.custom to function
-- whitespace