add switch widget test