Improve code coverage by including missing tests

Yes it needs to happen because of all the ssl stuff @ai did