Fix unit test

Useless unit test when calling undefined methods.
Rework the request/response mechanism
Apply changes to the requests unit tests
Merge pull request #16 from bhedrich/rework-request-response-mechanism

Rework request response mechanism