complete the ssmp encoder
complete part of the unit test of encoder