Added test from the sensor-net-demo sample code