midstream test