modified test for any List implementations