added karma for tests
added karma coverage