[MAINT] Resolve a few compiler warnings in `Core` unit tests.

As the title says.