Refining tasks for running dependencies and tests