In the 4th chapter of The Black Book the mean reversion strategy is symmetric, as I understand. Could you please explain why detrending is used in Train but not in Test?

Also, could you recommend a book or any source of info regarding detrending concept?