Remove commented code from middleware test