BAC-1091: improve infrastructure test for file uploads