add tests for ChromaticObject.centroid()
(#564)