Fixed failing tests around agents handling emails and calls