Replace these two lines with `$documents = array_values($paginationAdapter->getItems($this->numberOfItems - 1, 5));` and the rest of this test can remain the same.