fix NodeManager tests to avoid using NodeManager.befriend
fix NodeManager tests to avoid using NodeManager.befriend

CMPUT404Team/CMPUT404-project-socialdistribution,CMPUT404Team/CMPUT404-project-socialdistribution,CMPUT404Team/CMPUT404-project-socialdistribution