add jasmine and fix mocha

I also created couple of test cases