Fixed tests to work with Rails 4 and updated bundle and Gemfile for use with Rails 4