add test for length check
implement length check