Fixed test cases to run under Windows and added TLS 1.3 support