Testing a LinkedList class in Python