Fix exceptiosn on SessionHttpsTest