added testable functionality for commotiond
updated networking scripts with testing