Git: fix warnings.
Fix warnings in tests.