WORDS-349 - create tests for DocumentConverter.java class, some refactoring