add a simple UT for debugging decoder crash
Merge pull request #1494 from huili2/ec_final_crash_UT

add a simple UT for debugging decoder crash
Merge remote-tracking branch 'upstream/master' into travis.osx