modified testDeviceNCAP