Fix url joining problem described in issue #82.
Add histories.download_dataset test case.