Fix some railties test warnings