structure tests; order rows by inversion