[Encoder UnitTest] Add basic me test and some fix to existing tests

reviewed at https://rbcommons.com/s/OpenH264/r/180/