Fixed a broken test case where the menu widget wasn't being destroyed correctly.