Fix warnings in ConfigurationTest and MessagesTest.