Small fix for Karma tests