added test for truncate