Add passing test
Minor API changes
Add identity check
 refers to the secure pair
Add example for hostname validation (issue #1)