write serialized error message in test env
fail spec request with error message when x-lapis-error is set