fix mock/stub for dojo/when