Add test for "other than preferred routes penalty"
Make tests pass by fixing bugs
Merge pull request #1337 from goabout/bugfix_preferred_routes

Bugfix for the "other than preferred routes penalty" computation