registry: add tests for IsSecure Upstream-commit: e08d1f6af2de6f0a402bd0e5c26fb5093fda378e Component: engine