Made the error thrown for when you try to add a job with invalid params
a bit better, and added tests for that case