add tests for QueryParams and QueryFlag