modernise redirect tests by converting to using url helpers

These also fix some issues in the rails 3 migration