full test codes for compact encoding, need to be modifed later
1. finish: test codes for compat encoding
2. bug: compat encoding(find by running test, but not fixed)
remove unused print in testing codes
fix: encode fail when the sequence is blank
remove previous test codes for hex compact encode