Added check for getDependencies return type
Added test for commonjs modules