Gym control bonus is broken currently.
Team bonus can be up to 3 - I think the winning team's percent needs to be higher.
Also, IIRC the damage counter resets for you when you re-enter the battle after all your mons get knocked out, so if you guys didn't have to reenter, you'd have a natural advantage.