fix for DummySwitch not returning a promise on changeStateTo