Setting of profile weight back at the end of test added.