TST: windows dtype 32-bit fixes

Fix test failures related to incoorrect dtype, detail #4866.