Added support for the switch statement and associated test cases