Add a test about the server replying 401 while the client uploads a big file
minor clean up