scheduler: unit test for disappearing tasks

Closes #121