addToEnd, toString and simple tests with jUnit