add test for buildQueryString