Tests corrected

updated the tests to reflect the new way the errors are passed to the
user