Dark energy at cosmological and astrophysical scales: theoretical models and observational tests