Test stack trace detection heuristic.