fix tests, get last item from the list