Make tests compatible with Karma 0.9.x and later