Added Middleware Class setting in runtests