completed unit coverage for navbar