Fix tests which broke when event caching was introduced.
Fix tests which broke when event caching was introduced.

iot-factory/synapse,illicitonion/synapse,TribeMedia/synapse,matrix-org/synapse,TribeMedia/synapse,howethomas/synapse,iot-factory/synapse,illicitonion/synapse,matrix-org/synapse,rzr/synapse,illicitonion/synapse,matrix-org/synapse,matrix-org/synapse,TribeMedia/synapse,illicitonion/synapse,howethomas/synapse,illicitonion/synapse,TribeMedia/synapse,matrix-org/synapse,iot-factory/synapse,howethomas/synapse,iot-factory/synapse,rzr/synapse,rzr/synapse,TribeMedia/synapse,howethomas/synapse,iot-factory/synapse,rzr/synapse,howethomas/synapse,matrix-org/synapse,rzr/synapse