Testing when.js on dynjs