Little modification on testConditionDeviceSlots and deviceListSlots