fix: use parameters in config.NewClient and Jobs.DownloadArtifactsFile
This MR fixes the config.NewClient function and the Client.JobsService.DownloadArtifactsFile method. These functions had unused parameters, which is a bug, and those parameters should be used.
The issue was identified with the help of the revive.unused-parameter rule.
The MR also adds unit tests to ensure everything works correctly. These tests fail before the fix.