Refactoring of tests.
Added simple fake routing.