Add tests for id crisis check.
Fix id crisis force ssl check.

Check constant definedness properly. Made the function an instance method, because why not, and easier stubbing.