Added test for Tasks.

[ci skip]