Added Karma tests and extended standard Jasmine tests