Added unit tests.
Merge branch 'master' of https://github.com/mazong1123/fabric.ext.git