Fix tests on 32 bit platforms