Eliminate warnings in tests.