explicit getMerkleRoot() and tests