x64-upstream: Add unit tests related code
Merge pull request #16 from YuZhiqiangX/master

x64-upstream: Add unit tests