[Encoder UT] sample UT code refactor
Merge pull request #704 from JuannyWang/sampleNow

[Encoder UT] sample UT code refactor