code: function verifyCalibrationConstants(bundle, testName) {
      var defered = q.defer();
      var msg = '';
      if(bundle.calibrationInfoValid) {
          var checkHighRes = false;
          try {
              checkHighRes = bundle.device.savedAttributes.HARDWARE_INSTALLED.highResADC;
          } catch(err) {
              checkHighRes = false;
          }
          var deviceTypeName = bundle.device.savedAttributes.deviceTypeName;
          // console.log('Checking values', deviceTypeName, checkHighRes, bundle.calibrationInfo);
          var calCheckResult = getInvalidCalibrationValues(deviceTypeName, checkHighRes, bundle.calibrationInfo);
          // console.log('Result:',calCheckResult)
  
          
          if(calCheckResult.length > 0) {
              msg = calCheckResult.length.toString();
              msg += ' calibration constants are out of range.';
              bundle.hardwareTests[testName].status = false;
              bundle.hardwareTests[testName].executed = true;
              bundle.hardwareTests[testName].testMessage = msg;
          } else {
              msg = 'Device calibration constants are in range.';
              bundle.hardwareTests[testName].status = true;
              bundle.hardwareTests[testName].executed = true;
              bundle.hardwareTests[testName].testMessage = msg;
          }
      } else {
          msg = 'Skipped due to invalid calibration info';
          bundle.hardwareTests[testName].status = false;
          bundle.hardwareTests[testName].executed = true;
          bundle.hardwareTests[testName].testMessage = msg;
      }
      defered.resolve(bundle);
      return defered.promise;
  }
docs: **************** BEGIN DEFINING HARDWARE TESTS ************** 
  This test performs a basic check of the calibration constants.