This adds unit tests to check the expected behavior of the method in case the unit length field is truncated. Differential Revision: https://reviews.llvm.org/D83673