Fix attachment upload test