Added unit test for list class and fixed bug in size() impl