added Karma testing

Ideally with e2e Protractor we should run unit testing. Karma configured
and running.