add getDijit promise helper, and test case