add testcase with big switch for #781