Fix test variable reset.