Fix the TCP test, add config vars.