refactored isLength and split test to single file