Fix the test case so that all() and findOne() uses the same filter

The patches fixes the test case so that all() and findOne() uses the same filter.