registry: add tests for IsSecure

Signed-off-by: Johan Euphrosine <proppy@google.com>