Logging to influxdb and additional tests