If the trains you have run well at a constant speed around your layout then all is well. If the transformer is rated at 18V and was really set at full throttle the voltage measurement should be around 17V, not 5.1V. There is something off with the 5.1V reading but I would not be concerned about it.