Add tests to the statsd batching