diff --git a/tests/test_visibility.py b/tests/test_visibility.py
index 82d63ce00e4b8d142913d958e44e45373f0880fc..455db9f276a1b7f2b17d6411b0659fc624cbe56e 100644
--- a/tests/test_visibility.py
+++ b/tests/test_visibility.py
@@ -166,7 +166,7 @@ class FilterEventsForServerTestCase(tests.unittest.TestCase):
     @defer.inlineCallbacks
     def inject_message(self, user_id, content=None):
         if content is None:
-            content = {"body": "testytest"}
+            content = {"body": "testytest", "msgtype": "m.text"}
         builder = self.event_builder_factory.new(
             RoomVersions.V1,
             {