This commit ports some of the integrations tests from nixpkgs to be used for the matrix-synapse-next module.