Improved test for remove object from a LinkedList