computeDigest unit testing