added some unit tests for CList that among other things test for the reference counting bug