An empirical strategy to detect spurious effects in long memory and occasional-break processes