fixing a bug in tests because API changes for findLastEntries