updated test for specified length validator