truncate: added simple tests