AUI-1577 Consistent truncate behavior plus tests