Issue #2081153 by YesCT, lauriii, rdatar, miraj9093, Enxebre, smiro, alexpott: Remove unused local variables from core/tests.