Testing exceptions in the JobClient class