Could you run the test logic twice, once for hub connection and once for persistent connection.  I know it's the same code path but it's simple to test both scenarios to prevent future regressions.