add append test
refactor : move some test code to studygolang/pkg/trivialtest.go
Add hmac test code. try to figure out it