Added LinkedList tests and updated implementation