Test DistToStackCalculator.