added simple unit test (uses mocha & chai + sinon)