Updated karma unit tests / had to fix a small thing.