In BC, under the Family Law Act, a child is the child of the woman who gave birth to her, even if there is a pre-conception surrogacy agreement, until the birthing mom signs an agreement to hand over the child after birth.
http://www.cnn.com/2013/03/04/health/surrogacy-kelley-legal-battle/index.html?hpt=hp_c1