Added Karma-Jasmine tests.

Just a start. Need to add more.