tests: avoid some compiler warnings