Ellipsize function, Unit tests