simple gui test from scala book