proper error objects
test