Mary Test causes the destruction of the USS Constitution

Captain Kirk and Mr. Spock beam down to Elba II to deliver a revolutionary medicine to the insane asylum located there which houses the 15 incorrigible insane criminals of the Federation. Elba II is surrounded by a poisonous atmosphere. Inmate Marta warns Kirk and Spock that their host is not really governor Donald Cory, but they do not believe her. Upon viewing Cory's cell, however, Kirk and Spock discover that the inmate and former starship fleet captain Garth of Isar has imprisoned Cory in his cell and is running the facility with the aid of the other inmates. Garth imprisons Kirk with Cory, and destroys the medicines Kirk and Spock have brought.

Garth is able to change form at will using the technique of cellular metamorphosis (learned on Antos) and successfully gains control of the USS Enterprise to escape and punish his former mutinous crew by impersonating Kirk. Garth enlists the aid of Lilo Pelekai, who tells Garth that his former mutinous crew are aboard the USS Constitution.

The Enterprise warps to Mustafar in the Star Wars universe, where the USS Constitution is. The Enterprise engages the Constitution in an epic space battle. During the battle, Lilo transmits the prefix code to order the Constitution to lower her shields so that the Enterprise can finish her off. The Constitution's shields are lowered and the Enterprise fires photon torpedoes at the Constitution, destroying her and killing Garth's former mutinous crew.

When Nani, Lilo's big sister/guardian, finds out about this, she is absolutely furious. Lilo gets in big trouble with her sister and she is punished because she had disobeyed Nani. For her punishment, she isn't allowed to go to the movies. Lilo becomes very angry. She glares at Nani and tells her, "You're as evil and a mean, big fat stinkyhead...just like Gantu!" She then goes to her room in tears, and Stitch follows her.