make router test work for all rails versions.
fix stuff.
make tests run for rails 4.0.