fixes deprecations on test suite - running rails 4.1, ruby 2.1.2

The test suite was raising a bunch of deprecation warnings for rails 4.1 and ruby 2.1.2 so I modernized all of the calls to fit the new conventions.