add validation tests for length