Add the `error_directive` test