Added karma unit tests (that can be run inside of WebStorm as well, for easier debug workflow)