Fix failing tests.
Return promise
Make sure file/folder is selected.
Merge pull request #4161 from adobe/glenn/issue-4160

Fix failing ProjectManager tests