Fixes for task subclassing spec.
Fixes for task subclassing spec.