Upon making and perfecting the agreement and act of consolidation and filing the same or a copy with the secretary of state, the several corporations which are parties thereto shall be deemed to be one corporation by the name provided in said agreement, possessing within this state all the rights, privileges, and franchises, and subject to all the restrictions, disabilities, and duties of each of such corporations so consolidated.