Affine transformation tests