Add test for raising exceptions
Add comment to exception test case
Fix trailing space
Fix exception handling for array of jobs case