A government-run company says that it has sent the longest freight train ever on a test run.