Update to fix core unit test
Merge pull request #33 from zhfeng/unittest

Fix #28 Most unit tests fail