test: fix compilation warnings with VC++

C6011 and C4244