distance static method, tests