Fixed compilation errors in tests

Looks like in the updated NetBSD (but my one is actually old) it does not compile anymore