Test failure detection for targeting phase