added a switch test