Do not check return of application:start/1 in connect_with_ssl_test/1.
The applications are started in two places, but are not stopped. In this case application:start/1 returns ok or {error, already_started}. There is no reason to wait ok at application:start/1.