Added tests
Added alpn support