Add tests for job controller