make test a module
fix disconnect bug
pass port to disconnect callback for consistency