Initial set up for unit testing
Fixed minor bug with compute digest function