simplify code
test empty job id
add test for process_notification_payload