Removed duplicate warnings for test.addShouldWarn.