added a few more tests and refactored the request building and performing a little.