masking should be after truncating
added test for truncating