Add FME unit test
Merge pull request #787 from sijchen/fme_merge97

[Encoder ME] Add FME unit test