added test case that tests the length