adding Karma to write unit tests