refactored branch_or_organization tests for clarity