Simple ruby test script based on DialogDemo.java