modified TestTransforms to include spca and distinction between training and test points