Unit tests for append(), cons() and isEmpty().