Add test to truncate helper