add navbar unit tests