I fixed wsgi app unit tests so that they are not singleton.
I coded the logic for executing a controller for a given route. It works as expected.