test truncate behavior