Topological Sorting

Added integration test for running an intermediary task.