Testing extended Jordan-Brans-Dicke theories with future cosmological observations