fix: failing test on setting query string on url
fix: broken tests

- Call errors.InternalServiceError
- create set_qs_on_url which sets query string on url and
  returns the url, instead of the query string alone
- X-Next_Batch Fixes to get the correct query string and url
Merge pull request #149 from TheSriram/bug_fix_tests

Bug fix tests