added test for default error classes