test show_exceptions middleware exception handling, run all tests twice with local and non-local requests