tis: add basic tests, don't register unless certs

* fixes a crasher bug (missing config_options in load_config)
* added test coverage for register() and set up
* don’t register hooks unless certs are present
Merge pull request #795 from msimerson/tls

tis: add basic tests, don't register unless certs