If you're testing for past perfect, then use that. I will say that in most occasions simply using the past tense is usually acceptable. "Sherry was a mother for four years before Jane gave birth to her first child." is just as acceptable (and a bit more natural sounding, in my opinion) as "Sherry had already been a mother for four years when Jane gave birth to her first child."