Corrected Karma tests