test: fix compilation warnings

R=@bnoordhuis