fixes and tests for QueryParamParser