fix test code bug on 32 bit