Updated the getRestoreDir method to take advantage of SortedSet's
headSet
Accidentally committed failing tests. Added a binding for MessageDigest
to MockModule to fix it.