added test for navigation service and tab controller. refactored tab controller.