Changed to getLength in some tests