adding a perror test