Fix test cases to produce uniform results regardless of whether
the word size is 32 or 64 bits.