cleanup railties test; fix typos

1. Cleanup railties test
2. Fix some typos