Convert transport to use manager.

Signed-off-by: crynobone <crynobone@gmail.com>
Update testcase.

Signed-off-by: crynobone <crynobone@gmail.com>
Scrutinizer OCD.

Signed-off-by: crynobone <crynobone@gmail.com>