fix some test issues
Merge pull request #108 from guangyang/release-0.5.1

fix some test issues