Janet Jackson's wardrobe malfunction goes to court