Test loop will enable electric trains to run at up to 50mph, as well as hydrogen, battery and diesel vehicles.