update test to new error handling