tests: avoid unnecessary sha256 for hash