Peering into the past: Cosmology as a tool for constraining GR