Unit tests and fixes for the JobServiceJPAImpl