add distance test