fixed doRequest, some changes to test
Merge pull request #2 from Berdir/doRequest

fixed doRequest, some changes to test