Mark Latham and David Leyonhjelm are gearing up for a fight in the NSW upper house.