Fix tests for 32-bit systems