Railways tests longest freight train on Independence Day