test with non empty list