added before and after to karma