refactor and add tests; closes #15
Merge pull request #23 from duke-libraries/15-download-link-tests

refactor and add tests; closes #15