make MetridocScript an extension

made it an extension, changed tests appropriately