fixed bugs in JUnit and LinkedList