Test for the Erosion class that pinpoints the chain problem.

Signed-off-by: Jean-Yves Tinevez <jean-yves.tinevez@pasteur.fr>