CFY-1185 python 2.6 fixes
CFY-1185 re-factor _verify_task_registered for mocking purposes