fix test cases

  - follow up to [174c9f0](https://github.com/rails/rails/commit/174c9f0df39cd338a4871f82794256cc64f68a81)