Improved tests for jobs module.