gui: minor bugfixes, cleanup test cases