Test case for myArrayList