Fix bugs in SVD's input test and PCA's output test