configured karma for testing , adding some tests