do not assume, that there is always a 1024 sized dh generated. fixes #51

Also add the tests for the new ```ssl_key_size``` parameter.

This is why I should write tests when implementing something new...  :poop: