Sorry I didn't have time to getting round to hunting the cause of the test failures yesterday. I reckon this line here is probably your problem though. self references menu and menu references self (via self.__addMenuDefinition).