added tests for Truncator.