Implemented test_dispatchermiddleware
Merge remote-tracking branch 'origin' into patch-1