add test case for removing background jobs that are throwing exceptions