Fixed queryParameter addition logic flaw in RESTUtil, updated testcases