added test utility.
added some tests.
Merge pull request #10 from bayashi/more_tests

added some tests.