Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
this first assertion is not required as you have the same in testAdd() method.