Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
always NPE? what is the use of this test?