cleanup railties test; fix typos
Merge pull request #10017 from vipulnsward/railties_cleanups

cleanup railties test; fix typos