CuteEditor handle the ondblclick , and try to ExecCommand("Testing")
So please Use blank command name :
ctrlTest = ViewEditor.CreateCommandButton("", "test.gif", "Testing")
ctrlTest.Attributes("onclick") = "Testing();"
ViewEditor.InsertToolControl(1, "Testing", ctrlTest )
Regards , Terry .