WIP: test ssl stream connection

This is a work-in-progress implementation of an SSLStreamConnection test. I'll clean this up shortly.