Fix test for single job delete
Merge pull request #296 from guidow/fix_job_delete_test

Fix test for single job delete
Delay job sending finished notification mail

We have been running into the problem that the finished time in
notification mails was given as "None" sometimes, presumably because the
task for sending it started running before the original transaction to
set the job state was fully committed.

This commit will hopefully fix that.