test error responses