add test case for invalid secret decode
change method name encodeWithHeader from encode
add README.md