Add script to reproduce truncation errors
(#470)