added unit test for influxdb query