add karma for unit and midway testing