Set final configuration for agent transport
Change port for TCP test server
Fix some TODOs