corrected addModuleDependency and corresponding test