test error reporting