File upload test improvement