Extend ExpVisitor test suite and fix return type of length.