update test suite
fix buffer key as input to hmac