tests: Fix broken assertion in ApiQueryAllPagesTest