Tests for method addLast().