added karma junit tests