add BasicInitialize UT and fix in existing interface test

add BasicInitialize UT and some fix in create/destroy encoder in the existing interface test
being reviewed at: https://rbcommons.com/s/OpenH264/r/657/