Add the test case 'CreateWidget' to cover the issue CDE-313.