Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
You don't need to assert here since you are testing clear; not add.