added tests for statsd middleware