added sinon to karma config and added tests for sinon