change status instead of deleting jobs

also add test php file