test/: avoid integer overflow on 32 bit systems