fix some unit tests
clean up some unit tests, and the response object