Updated Karma tests