some more unit test fixes
added ssl support