fixed and checked the input tests for PCA