modified ArrayListTest