setupTestingRouter

Router setup factory function used for testing.