Add QUnit tests for main menu toggling