Add test for switching lists