Fix warnings in tests.