Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
I would create 2 clears: 
testClear_whenEmpty
testClear_whenNotEmpty