Changes test to check for `type: "validation"` on validation errors