fixed broken unit test
added support for nested GUI callbacks