Add distance field test