fix module order in reactor, fix tcp-test