Added Truncate filter, improved tests