WORDS-371 - create integration tests for ExportController.java class, some refactoring