registry: add tests for IsSecure

Splitted the test from #8898