write some tests
Merge pull request #34 from stephenplusplus/master

write some tests