added test for getting errors from response