fix assertion method for non-deterministic query results