Cleanup mock request handler
Reuse sorting tests
Remove data property if a request fails
Delete both data and total