updated the tests to work with new error style