add unit test for bounds/centroid issues
(#612)