fix proc in raise error test