Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
We don't need to use size eventually. The size will immediately be 0...  Can you also check the other size eventuallies in this test?