Added test for logLength