Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
I'm sure we can come up with more tests for transactional list.