Scalar-tensor cosmological models converging to general relativity: potential dominated and matter dominated cases