remove duplication in truncate test