add test for empty list