test case for switch - passed - no extra handling required