test error object