Added test cases, finished functions for ListModel