add additional option set test
refine code
code refine
fix bug
Merge pull request #1350 from lyao2/ut_interface2

add encoder Interface additional option set test