Added Karma + Mocha + Chai + Sinon based unit tests.