add bootstrap for phpunit
rename test method more readable
extract super class for directory setup
Merge pull request #44 from satooshi/0.7.0-issue-17

fix issue #17: Refactor test cases