Added two more worker job-handling tests.

The bad json test exposed a bug, which I fixed: we would cheerfully go
on to try to use a bad job payload. Yay integration tests.