List and Set test code