add BasicInitialize UT and some fix in create/destroy encoder in the existing interface test
Merge pull request #1145 from sijchen/interfaceUT11

add BasicInitialize UT and fix in existing interface test