add ArrayListTest.cpp and update the processing method of throwing exception