Some tests work again.

Some of the tests that stopped working after the Rails 4 migration
now work again. Still a lot of incorrectly failing tests though.