added length tests
 added length validations for tests to pass