added jasmine tests
added sinon tests