Fixed some branding bugs

Fixed some bugs in check-brand and test to pass the branding tests