stubbed distance test function