Improve dojo/when tests