Fix clang warnings in tests