Adding 'switch' testcase.

Mostly just to benchmark the yield implementation.