Tests of ArrayList and Linked list