added download file api with working unit tests