Reverted unneccessary change for writing gems to the test app Gemfile.
Reverted changes to the core Gemfile and instead added a rails_4_0 appraisal file. Also removed references to rails specific versions in the tests.