add parameter and one case in UT
Merge pull request #1374 from sijchen/ref_refac41

[Encoder UT] Add parameter and one case in UT