Fix tests after this.promise_dirname fix in core.