tests and x,y consistency