Fix unit tests for DocumentManager

fix https://github.com/adobe/brackets/issues/5624

update function name. Tests  broke after refactoring