Test PrincipalComponentAnalysis3D class.
Fix logic in comparison.