Refactor for file-transfer-in test