test list size() and empty().