java test on index.js and sensor.json