test for saving file with capital letters in word + refactor