An unwavering Taylor Swift testifies in court