refactored SSL certificate handling
allow only new "expect" RSpec syntax in tests