Distance table test

Adding a tests for distance table endpoint