adding tests for ditances