switch test methods