Fight over Cary's red-light cameras goes to court