test(controller): add django middleware tests