Fixed a test failure by a non-deterministic query.