RUBY-648 adding tests for x509 auth mechanism
minor: removing some duplication in how we valid auth responses