Tests and improvements for lists.
Added some examples.