Configure the url helpers correctly

Since
https://github.com/rails/rails/commit/6c7d895ddae5a7a696a9a047e025e9e4e305f790
action dispatch routing helpers are only included in action view using
the railtie. Since we don't load the railtie in test environment we need
to properly setup it