updated Scotch tests to detect the type of 'Error()' thrown