require rails/version in test helper too.

Also, it looks like the rest of the hack is not needed anymore.