Add PCA unit tests

Signed-off-by: Stéphane Depierrepont aka Toorop <toorop@toorop.fr>