Finishes what 7f6b70fafb started. Having one part use length and another code unit length lead to crashes, the added test ensures we don't mess that up again.
7f6b70fafb