added test for list