Wrote test for switches