Added tests for detecting h2 connection