Repaired the bugs in the arraylisttests and integrated them into the main test