improving testQueryList