Refactor for file-transfer-out test