Fix failing ProjectManager tests

Also fix `ProjectManager.deleteItem()`, which was never resolving the promise.