tests: Fix compiler warnings