module-manager: lazy load dependencies; fixes #115
test: adds test case for lazy loading of dependencies; #115