refactor(*): move default key prefix to registry
tests(fleetctl): add tests for parseEndpoint