Using mock task in manager tests