fix ModifyLimitQueryTest to correctly assert deterministic and non-deterministic results