written tests for the navigation controller. #39 resolved