Fix check_dependency to set correct dependencies
Update submit command to check for DONE state
Add cli test