Fixed TestHelper for Rails 4

I've added an integration test that asserts that the rspec-matchers work.

I've also fixed an issue with the Test Helper and Rails 4. My patch is also backwards compatible with Rails 3.