fixes a branding test which was passing for a trivial (wrong) reason

@brianhw @carsongee

This test was passing because it was throwing AttributeError for self.factory not existing, not for the actual reason.