Refactoring it - testing loadDictionary