fix(tests): fix hanging email issues