Making middleware class specific for tests
Cleaning up parent middleware testcase