Add unit tests for Truncator.