[IMP] Manage max testing and max running by branch