diff --git a/test/no_gui/unit/test_protocol_caps.py b/test/no_gui/unit/test_protocol_caps.py
index e3e0bbece09411605eb3e0f747ebaaff259785ac..eef096a43d581f7a425d9f527a0de2de4517d50b 100644
--- a/test/no_gui/unit/test_protocol_caps.py
+++ b/test/no_gui/unit/test_protocol_caps.py
@@ -31,6 +31,9 @@ class TestConnectionCaps(unittest.TestCase):
         self.module._account = 'account'
         self.module._capscache = MagicMock()
 
+    def tearDown(self):
+        app.contacts.remove_account('account')
+
     def _nec_caps_presence_received(self, obj):
         self.assertTrue(
             isinstance(obj.client_caps, caps_cache.ClientCaps),