Added tests for Benchmark middleware