some bugs in gui test cases corrected