range query test added