Handling Job errors + tests