Add test infrastructure for Rails 4