unit test for list