test ssl stream connection (fixes #189)

This is a work-in-progress implementation of an SSLStreamConnection test. I'll clean this up shortly.
You could add this promise to loadingPromises at line 110, so we have all test-related stuff in the same place.