switches: Add switch tests.