fixup for getlength
update tests