Fixed test for rect, x and y are no more used.