add edit distance test
refactor package