Change error tests to use just the flatten algorithm.