Earlier the survivor, along with her mother and uncle, were brought to the state capital under tight security as they feared for their lives. The test was carried out at the Lohia hospital there.
The survivor later told the media that Prime Minister Narendra Modi's statement on Friday saying that the guilty will be brought to book was very reassuring and that she now hoped that justice will be done in her case.
She also said that the arrest of Sengar, the legislator from Bangarmau, was also a positive development. She also thanked the media and the Central Bureau of Investigation (CBI) for taking up her cause that was, so far, a "lonely and losing battle".
The survivor's uncle however accused the Unnao administration of conniving to save the legislator.
Informed sources said that a medical examination of the accused legislator was carried out sometime on Thursday night.
The survivor tried to set herself ablaze outside Chief Minister Yogi Adityanath's residence last Sunday, claiming inaction in the rape case that took place in 2017.
Later on Sunday, her father was picked up by the police and allegedly beaten up in custody by the MLA's brother Atul Singh and his aides, following which he died.