Update device.test.nut

Changed device.pin -> hardware.pin