test mounted middleware