Add tests for Rails 4.1

Resolves issue #29