Added input tests for PCA and Sparse PCA