tests: fix on 32bit and Windows