Walk me through how you would design a test plan and write test cases for a new API endpoint that handles file transfers.