Misc cleanups

- Duplicated tests have been deleted
- Proper SHA1 digestion
svn 1.7 changes the error message for file not found