This commit ports a part of the integration test from nixpkgs to be used for the matrix-synapse-next module.