registry: add tests for IsSecure

Signed-off-by: Johan Euphrosine <proppy@google.com>
Merge pull request #9095 from proppy/is-secure-test

registry: add tests for IsSecure