Foundations of the reformed doctrine of the covenant