initial regression test and refactored the topology interface

testRegressionFramwork? Otherwise you can't make it run with go test?