Added test for search keeping last items in search results