fixed test.rs for latest rustc