Add unit tests for DelayedTask