More complete toposort test.