Allow query parameters in request

- This PR enables query parameters to be used in the request
- It also tidies up the unit test
Merge pull request #197 from sulu-cmf/bugfix/allow-query-parameters-

Allow query parameters in request