added junit and coverage to karma tests