streams - neighborsWithHistory test