Unit test added for nav controller.