Improved coverage of Jobs package and added additional tests for Permission service.