Original commit message from CVS: added a test which shows a problem with state changes when the toplevel bin is a thread. there is some kind of deadlock. It would be good if wingo or wtay could have a look.