Add tests for Rails 3.2 and 4