fix warnings in railties test
Merge pull request #10082 from vipulnsward/fix_railties_test-v2

fix warnings in railties test