Added task creation test.

[ci skip]