Marked the doctest task asynchronous.

Additionally this fixes multiple errors in task definitions.