rewrote unit tests for requests