Add test for pixelCentroid