[fix tests] Remove global retry count checks in TestTask