Added missing Rails 4 tests/methods.