fix test for calcLengthFromList