Testing non-linear force-free coronal magnetic field extrapolations with the Titov-Démoulin equilibrium