Testing homogeneity with the fossil record of galaxies