[encode] add bool test case
[encode] add bool packed test