Transient gas-liquid flow in horizontal T-junctions