TLS support.
Just open the server if there are some messages to send.
Fixed test.
Checking if file was created with no problems.