test/job: Implement some basic jobs tests.
job: Free the job name on exit.