PCA now passes all input and output tests