fix test-harness for 32-bit platforms