fix query test