Added Karma and Created Unit Tests