added file download
fixed unit test by falling testRestClient