Add file upload test for APIRequestFactory

Remove test_compat