Replaced jasmine testing framework by mocha, expect.js and sinon

.. as discussed in #319