Add TotalLength toString unit test