Fixes and stabilizes the unit test for last seen items