The profinite completion of certain torsion p-groups