make wd.js tests working locally.
there were various issues in wd.js promises etc which broke this.
seems to be better to simply use the native wd.js methods rather than
trying to wrap them. wd.js promises API is changing and weird.