added test for to string when list is empty