implement spec:failed event