add testcase
Merge pull request #20 from miller/master

bug fixed