WORDS-355 - create tests for PdfToStringConverter.java class, some refactoring