reorganized the source in ArrayList, to make it easier to develop the
tests. Also differentiated some of the add methods in the test class.