Freight train on mining test run derails near Warracknabeal