ticket:3 added test to check that middleware class is in middleware classes