Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
We don't need to test the 'add' here.. so remove size check