Update for Karma testing