Throughout a federal trial that featured compelling testimony about a perplexing case , the Pakistani scientist-turned-attempted murder defendant offered a running , combative commentary that sometimes got her kicked out of the courtroom .