Refactoring and unit-test
Merge pull request #2 from yuya-takeyama/testing

Unit-test and CI on wercker