Added karma unit testing