Testing tsort of Rust rewrite