Added: more tests for the jobs module.
Changed: reduced the amout of db requests needed to fetch a job.