Add tests for jobs