design test for distance table endpoint that tests for properties of zero diagonal and non-zero elements else