range query test fix