Testing of megawatt-class gyrotrons