Test coverage for statsd output + fixed error found in the process