added a test case for modal with navigation bar