unit test for combined device state mapping and device to exten state mapping