fixing a few small bugs, adding ssl_test option