Unit test for computeHmac()