fix up tests for digest