Better edit distance tests