added tests
Merge pull request #114 from xrotwang/master

added tests