Bug 1006023 - [testing] Write a test for abandoning a task

All the tests pass for me locally.
We don't need these next 4 asserts as they are already covered by another test.