adding test for navigation menu rendering logic