Fixed task path.
Added invoking task init in test setUp.
Refactored