improved tests for xmlrpc calls

simplified how mocking xmlrpc is done
properly testing calculate_hash_for_file
Merge pull request #22 from nicoddemus/issue-17

Issue 17