testcase for flattening of switches with cases that need to be kept together