tests arraylists