Updated remove modules tests to reflect getNodeModuleInfo changes