Fixed unittests to work the new team notification tasks (#1029)