test/db/db-utils.test.js: Improved code layout
test/core/pathGatherer.test.js: Replace fs-module functionality with stubs