core.tests: add testIsOwnNameLocallyAvailable and wip isOwnNameLocallyAvailable impl
minor