Added test for SwingDevice
Move wait-for-change logic to SimpleComponentListener