fix unittest
Merge pull request #20 from gasolin/test_fix

fix unittest r=yurenju fixed #16