Test for catastrophic backtracking.