adding tests for distance computation