refact(nodetests): Changed the creation of stubs with sinon

- It's not required to create a dummy interface to mock it with sinon
  sinon can create a stub with a selfdefined interface