[MAINT] improve locator unit tests in Core module.

As the title says.