added karma for testing and wrote first test