fix karma compile berefore test