added test to GUI logic