unit coverage for navbar comp API