refactor(jobs): use groovy and spock to write tests for jobs, add helpers