add encoder interface ut
Merge pull request #1220 from ruil2/interface_ut

    add encoder interface ut