Add karma for unit testing and create palette service