Improve test coverage

Adds test coverage (and docstrings) to `_generate_job_desc` and `find_project_root`.