Uses new digest package instead of string digests

Also drops extraneous test package and uses testutil instead