add output for EditDistanceResult
use output for EditDistanceResult in test