test framework and tcp interface