Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
I'm sure we can test more and we can split it up in multiple test methods. We can test the arguments etc.