Fix truncate modifier
Add test for truncate modifier