added karma and basic test