some corrects of unusable imports
Fixes created after notices in pull request.
class of mock has been fixed, test of indexation edge ngram has been created
big cycle has been separated to generator