added test for errored requests