Unit test for List

Added List unit tests for single and multiple nodes
fixed some exception bugs
You can use a regular assertEquals(0, list.size())

No need for an assertEventually since the items will be cleared when the clear call completes.