karma events spec test