Add switch test example