test: create express app instead of connect app

Fix unit-tests to create an express app, since express-session does
not work with plain connect applications.

Load the middleware handler from standalone modules, since they
are no longer bundled in express.