Merge pull request #27 from fezfez/karma-unittest

Add karma
Merge pull request #28 from fezfez/karma-unittest

Add unit test
Coding style