Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
I don't mind that much which one is used. Till so far we have been using this 'withIndex' approach. As long at is is very clear which method is mentioned and they are grouped together in the test so you can easily go over all cases