Refactor documents generation And Move Tests Documents