add systematic test for edit distance