refactoring test  + adding doc7