Add basic tests and fix another bug.
Merge pull request #5 from yasuhito/feature/rubocop_refactoring

Feature/rubocop refactoring
Merge pull request #6 from yasuhito/master

Master