Add check test and use the `lenght` method
Merge pull request #16 from mquandalle/tests

Add check test and use the `lenght` method