Added test functionality to download a file from the server.