tests: update test-publish to use new registerPrefix which takes the keyChain.