test truncate for zero case