Add tsort test case.

Other test cleanup.
Rename file.