An example of how to unit test nodejs, with mock, stubbs injected