typo in switching api test