Clean redundant steps from the plan
Test that cyclical dependencies cause an error