switch testing