Add ContractionValidator
Fix a bug and enhance test
Merge pull request #247 from takahi-i/contraction-validator

Add ContractionValidator