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

As the title says.