If you add a mod to game with rails researched it works.
If you have no railway research new locos won't unlock since they are not attached to any tech as unlocks.
Also as a suggestion I'd recommend setting better reverse friction coefficient for heavy loco to make it work with more power on L-C...C-L trains. It's the reversing_power_modifier in entity prototype( default is 0.6).