Add mock impl for To and From devices.