test: adds test cases; #119
test: util; #78
test: adds test cases for util; #76
module-manager: fixes a bug that leads to the wrong result of require.resolve; fixes #119