Add a test case for editdist function