update topological order to use test dependencies