Finally found solution to achieve independent unit tests for amd modules.  Introduced sinon.js as mocking library.