added test cases for switch case statements