Allow query parameters in request

- This PR enables query parameters to be used in the request
- It also tidies up the unit test

__Tasks:__

- [x] test coverage
- [x] gather feedback for my changes

__Informations:__

| Q             | A
| ------------- | ---
| Tests pass?   | yes
| Fixed tickets | #171
| BC Breaks     | none
| Doc           | n/a