Senate contest heads to court