Fixing length adjustment on both while loops
added test for client hello without SNI extension