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)